%h2{:class=>"content_header"}
  =@video.title
.content_container
  %p
    <object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/a3EyA2WWfpY&hl=pt_PT&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/#{@video.video_id}&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>
  %p
    =@video.description
  %p== Votes: #{@video.votes.count} #{link_to "vote", vote_video_path(@video), :method=>:post}
  -if (@current_user and @video.user.id == @current_user.id)  or (@current_user and @current_user.admin )
    = link_to "Remove", [@video.user,@video], :method=>:delete, :confirm=>"Are you sure you want to delete page #{@video.title}"
  %p Comments
  -for comment in @video.comments
    %p=comment.comment
    %p=comment.created_at
    %p=comment.user.email
    -if (@current_user and comment.user.id == @current_user.id)  or (@current_user and @current_user.admin )
      %p=link_to "delete", [@video, comment], :method=>:delete, :confirm=>"Are you sure you want to delete this comment?"
  
  
  -semantic_form_for Comment.new,:url=>comment_video_path(@video) do |form|
    =form.error_messages
    -form.inputs do
      =form.input :comment
    -form.buttons do
      =form.commit_button 